@extends('layout.userinfo')
@section('content')
    <div class="profile-panel" role="main">
    <div class="dialog-content" ng-transclude="" style="margin: 200px;">
        <form class="modifyname ng-scope ng-pristine ng-valid"  method="post" action="/updateName">
            {{csrf_field()}}
            <h3 class="modifyname-title">
                修改用户名
                <small>
                    用户名只能修改一次
                </small>
            </h3>
            <div class="formfield ng-isolate-scope" ng-class="{ &#39;validate-error&#39;: model.$hintTypes[property] === &#39;error&#39; }"
                 form-field="" model="userData" property="name">
                <label ng-bind="label" class="ng-binding">
                </label>
                <input type="text" placeholder="请输入新的用户名（5-24字符）" name="name"  class="ng-scope ng-pristine ng-valid">

            </div>
            <input type="submit" class="btn-primary btn-lg"  value="确定">
            <a class="modifyname-cancel" href="/userinfo" onclick="location.reload([false])">
                取消
            </a>
        </form>

</div>
    </div>
@endsection